<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="title.jsp"/>
<meta charset="utf-8"/>
 <meta name="keywords" content="贷款，信用贷，分期，借款，万八千，信用借款，借款5000元，小额现金贷" />
  <meta name="description" content="万八千提供快速的小额借款服务。可以借款5000元、无抵押、无担保、万八千是一款针对成人白领市场的消费金融产品，通过互联网、大数据等科技手段，为用户提供短期的信用借贷，解决用户资金周转问题。"/>
<link href="css/style.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
<link href="css/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
<script src="js/jqbase.js"></script>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/jquery.ui.datepicker.js"></script>
<script src="myjs/gy.js"></script>
<script src="myjs/search.js"></script>
<!-- <script type="text/javascript">
$(function(){

	$( "#from" ).datepicker({
		defaultDate: "+1w",
		changeMonth: true,
		numberOfMonths: 2,
		onClose: function( selectedDate ) {
			$( "#to" ).datepicker( "option", "minDate", selectedDate );
		}
	});
	
	$( "#to" ).datepicker({
		defaultDate: "+1w",
		changeMonth: true,
		numberOfMonths: 2,
		onClose: function( selectedDate ) {
			$( "#from" ).datepicker( "option", "maxDate", selectedDate );
		}
	});
	
	$( "#datepicker , #datepicker1" ).datepicker({
		changeMonth: true,
		changeYear: true
	});//日期修改年份
	
});
</script> -->
</head>
<body style="background:#eaedf1;">
<jsp:include page="top.jsp"/>
	<div class="backstage no-mar">
		<div class="chose_btn clearfix">
			<a href="" class="frash fl"><img src="img/frash.png"></a>
			<!-- <select class="fl">
				<option>全部打款状态</option>
				<option>全部打款状态</option>
				<option>关闭</option>
				<option>待生效</option>
				<option>有效已提交</option>
				<option>自动打款成功</option>
				<option>自动打款失败，转人工</option>
				<option>人工处理成功</option>
				<option>人工处理失败</option>
			</select>
			<select class="fl">
				<option>全部还款状态</option>
				<option>全部还款状态</option>
				<option>已还清</option>
				<option>未还清</option>
			</select> -->
			<!-- <input placeholder="借款编号" class="fl key_words"> -->
			<input placeholder="用户名" value="${pager.key }" class="fl key_words" id="key" > 
			<table width="450" border="0" cellspacing="0" cellpadding="0" class="register-table">
				 <tr>
				    <td height="40" align="right">有效期起始：</td>
				    <td height="40" align="left"><input type="text" value="${pager.time1 }" name="te" id="from" class="test-style width150" /></td>
				    <td height="40" align="right">有效期截止：</td>
				    <td height="40" align="left"><input type="text" value="${pager.time2 }" name="tex" id="to" class="test-style width150" /></td>
				 </tr>
			</table>
			<button value="" id="search">搜索</button>
			<!-- <button value="">导出明细</button> -->
		</div> 
		<table class="caozuo audit">
			<tr>
				<th>审核编号</th>
				<th>用户ID</th>
				<th>用户名</th>
				<c:if test="${pager.type==1 }">
				<th class="">初审时间</th>
				</c:if>
				<c:if test="${pager.type==2 }">
				<th class="">复审时间</th>
				</c:if>
				<c:if test="${pager.type==3 }">
				<th class="">终审时间</th>
				</c:if>
				<c:if test="${pager.type>2 }"><th>用户额度</th></c:if>
				<th class="">机器审核得分</th>
				
				<c:if test="${pager.type>0 }">
				<th>初审</th>
				<th>初审人</th>
				</c:if>
				
				<c:if test="${pager.type>1 }">
				<th>复审</th>
				<!-- <th>复审时间</th> -->
				<th>操作人</th>
				</c:if>
				
				<c:if test="${pager.type>2 }">
				<th>终审</th>
				<th>操作人</th>
				</c:if>
				
				<th class="w6">操作</th>
			</tr>
			
			<c:forEach items="${pager.list }" var="check">
			<tr>
				<td>${check.recId }</td>
				<td>${check.userId }</td>
				<td>${check.userName }</td>
				<td><fmt:formatDate value="${check.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<c:if test="${pager.type>2 }"><th>${check.credit }</th></c:if>
				<td>${check.fenshu }</td>
				
				<c:if test="${pager.type>0 }">
				<th>
				<c:if test="${check.status1==1 }">初审通过</c:if>
				<c:if test="${check.status1==2 }">初审不通过</c:if>
				<c:if test="${check.status1==3 }">初审补交材料</c:if>
				</th>
				<th>${check.adminName1}</th>
				</c:if> 
				 
				<c:if test="${pager.type>1 }">
				<th>
				<c:if test="${check.status2==1 }">复审通过</c:if>
				<c:if test="${check.status2==2 }">复审不通过</c:if>
				<c:if test="${check.status2==3 }">复审补交材料</c:if>
				<th>${check.adminName2}</th>
				</th>
				</c:if>
				
				<c:if test="${pager.type>2 }">
				<th>
				<c:if test="${check.status3==1 }">终审通过</c:if>
				<c:if test="${check.status3==2 }">终审不通过</c:if>
				<c:if test="${check.status3==3 }">终审补交材料</c:if>
				<th>${check.adminName3 }</th>
				</c:if>	
							
				<td>
					<!-- <a href="" class="work1"></a> -->
					<a href="userInfo.html?userId=${check.userId }" class="work4"></a>
				</td>
			</tr>
			</c:forEach>
		</table>
		 <div class="page clearfix">
		 <div ><font color="red">${pager.tot}</font></div>
                <div class="page-link fl">
                    <a href="cailiao.html?page=1&pageSize=${pager.pageSize }&userId=${pager.userId}&type=${pager.type}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}">首页</a>
                    <a href="cailiao.html?page=${pager.page-1 }&pageSize=${pager.pageSize }&userId=${pager.userId}&type=${pager.type}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}">上一页</a>
                    <a class="active" href="#">${pager.page }</a>
                    <a href="cailiao.html?page=${pager.page+1 }&pageSize=${pager.pageSize }&userId=${pager.userId}&type=${pager.type}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}">下一页</a>
                    <a href="cailiao.html?page=${pager.totalPage }&pageSize=${pager.pageSize }&userId=${pager.userId}&type=${pager.type}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}">尾页</a>
                </div>
                <div class="page-info fl">共<span>${pager.totalRow }</span>条信息&nbsp;&nbsp;当前显示第<span>${pager.page }</span>页</div>
            </div>
	</div>
<jsp:include page="foot.jsp"/>
<jsp:include page="left.jsp"/>

<script type="text/javascript">
$(function(){
	$("#search").click(function(){
		var key=$("#key").val();
		var time1=$("#from").val();
		var time2=$("#to").val();
		window.location.href="cailiao.html?type=${pager.type}&page=${pager.page}&&pageSize=${pager.pageSize }&userId=${pager.userId}&key="+key+"&time1="+time1+"&time2="+time2;
		
	})
})

</script> 
</body>


</html>